|
|
|
|
|
|
|
To understand these icons, refer to Table 15.1 for a list of the form names and the type of forms they represent in the Visual Basic project window. |
|
|
|
|
| Table 15.1 Description of Each Form in the Project Window. | | Form Name | Description | | frmMDI | This is the MDI form. | | frmChild | This is an MDI child form. It has its MDIChild property set to True. | | frmStandardForm | This is a standard form. |
|
|
|
|
|
|
Runtime Features of MDI Child Forms |
|
|
|
|
|
|
|
|
At runtime, the MDI form and the MDI child forms take on special features. Heres a list of these features: |
|
|
|
|
|
|
|
|
All child forms are displayed within the MDI parents client area. (See the following note.) |
|
|
|
|
|
|
|
|
Child forms can be moved and resized only within the MDI parents client area. |
|
|
|
|
|
|
|
|
Child forms can be minimized and their icon displayed within the parents client area. |
|
|
|
|
|
|
|
|
Child forms can be maximized within the parents client area and the caption of the child form appended to the caption of the MDI form. |
|
|
|
|
|
|
|
|
If the active child has any menu items, they will replace the MDI forms menu bar. The child menus are not displayed on the child form. |
|
|
|
|
|
|
|
|
Windows automatically gives a child form with a sizable border a default size. This size is based on the size of the MDI parents client area. You can override this by setting the BorderStyle property of the child form to 1-Fixed Single. I recommend that you do this because you dont want users to accidentally cover up the controls you worked so hard to place at a certain location. |
|
|
|
|
|
|
|
|
Child forms cannot be displayed modally. |
|
|
|
|
|
|
|
|
When you load an MDI child form, the parent is automatically loaded. However, the opposite is not true. If you load a parent form, the children of that form will not be loaded automatically. |
|
|
|
|
|